<template>
	<view class="header">
		<view class="title">{{title}}</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '待办任务'
			}
		}
	}
</script>

<style lang="scss" scoped>
	/* 头部样式 */
	.header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 90rpx;
		border-bottom:2rpx  #DCDCDC solid;
		.title {
			font-size: 32rpx;
			color: $uni-primary;
			font-weight: 600;
		}
	}
	
</style>